package com.weishi.project.training.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.weishi.common.utils.DateUtils;
import com.weishi.common.utils.GPSUtil;
import com.weishi.project.speedometer.vo.RealTimeDataVo;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * 船速仪历史数据
 */
@Data
@TableName("tbl_acceleration_log")
public class AccelerationLog implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;

    private Integer channelId;

    private String devId;

    /** x轴加速度 */
    private double xcode;
    private double ycode;
    private double zcode;
    
    /** 时间戳 */
    private String timp;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date ctime;

    /**
     * 波峰/波谷 标识  正数为波峰，负数为波谷
     */
    @TableField(exist = false)
    private int count;


    @Override
    public String toString() {
        return zcode+"";
    }
}